/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.personnel.api.vo.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fuyao.cloud.personnel.api.annotaion.ValidationDate;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 合同信息
 *
 * @author 碎月
 * @date 2022-01-12 15:16:20
 */
@Data
@ColumnWidth(30)
public class ContractInfoExcelVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 人员编号
     */
    @ExcelIgnore
    @NotBlank(message = "人员编号不能为空")
    @ExcelProperty(value="人员编号")
    private String personnelNum;
    /**
     * 单位名称
     */
    @ExcelProperty(value="单位名称")
    private String deptName;

    /**
     * 姓名
     */
    @ExcelProperty(value="姓名")
    private String name;

    /**
     * 合同编号
     */
    @ExcelProperty(value="合同编号")
    private String contractNo;

    /**
     * 合同开始时间
     */
    @ValidationDate(message = "合同开始时间格式不正确")
    @ExcelProperty(value="合同开始时间")
    private String contractStartDate;

    /**
     * 合同结束时间
     */
    @ValidationDate(message = "合同结束时间格式不正确")
    @ExcelProperty(value="合同结束时间")
    private String contractEndDate;

    /**
     * 备注
     */
    @ExcelProperty(value="备注")
    private String note;

    /**
     * 合同类型
     */
    @ExcelProperty(value = "合同类型")
    private String type;

}
